All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.media.j3d.PhysicalEnvironment

java.lang.Object
   |
   +----javax.media.j3d.PhysicalEnvironment

public class PhysicalEnvironment
extends Object

Constructor Index

 o PhysicalEnvironment()
Constructs and initializes a new physical environment object.
 o PhysicalEnvironment(int)
Constructs and initializes a new physical environment object.

Method Index

 o getAudioDevice()
Gets the audioDevice for this PhysicalEnvironment
 o getCoexistenceCenterInPworldPolicy()
Returns the current coexistence center in physical world policy.
 o getCoexistenceToTrackerBase(Transform3D)
Retrieves the coexistence coordinate system to tracker-base coordinate system transform and copies it into the specified Transform3D object.
 o getDominantHandIndex()
Gets the sensor index of the dominant hand
 o getHeadIndex()
Gets the sensor index of the head
 o getLeftHandIndex()
Gets the sensor index of the left hand
 o getNonDominantHandIndex()
Gets the sensor index of the non-dominant hand
 o getRightHandIndex()
Gets the sensor index of the right hand
 o getSensor(int)
Gets the sensor specified by the index
 o getSensorCount()
Get the current sensor count.
 o getTrackingAvailable()
Returns a status flag indicating whether or not tracking is available.
 o setAudioDevice(AudioDevice)
Set the audio device
 o setCoexistenceCenterInPworldPolicy(int)
Sets the coexistence center in physical world policy.
 o setCoexistenceToTrackerBase(Transform3D)
Sets the coexistence coordinate system to tracker-base coordinate system transform.
 o setDominantHandIndex(int)
Sets the index of the dominant hand to the specified sensor index
 o setHeadIndex(int)
Sets the index of the head to the specified sensor index
 o setLeftHandIndex(int)
Sets the index of the left hand to the specified sensor index
 o setNonDominantHandIndex(int)
Sets the index of the non-dominant hand to the specified sensor index
 o setRightHandIndex(int)
Sets the index of the right hand to the specified sensor index
 o setSensor(int, Sensor)
Set the sensor specified by the index to sensor provided
 o setSensorCount(int)
Set the number of sensor objects per PhysicalEnvironmnet.

Constructors

 o PhysicalEnvironment
 public PhysicalEnvironment()
Constructs and initializes a new physical environment object. It creates a default (3) sensors.

 o PhysicalEnvironment
 public PhysicalEnvironment(int sensorCount)
Constructs and initializes a new physical environment object.

Parameters:
sensorCount - the number of sensors to create.

Methods

 o setAudioDevice
 public void setAudioDevice(AudioDevice device)
Set the audio device

Parameters:
device - audio device object to be associated with this PhysicalEnvironment
 o getAudioDevice
 public AudioDevice getAudioDevice()
Gets the audioDevice for this PhysicalEnvironment

Returns:
audio device object associated with this PhysicalEnvironment
 o setHeadIndex
 public void setHeadIndex(int index)
Sets the index of the head to the specified sensor index

Parameters:
index - the new sensor index of the head
 o getHeadIndex
 public int getHeadIndex()
Gets the sensor index of the head

Returns:
the sensor index of the head
 o setRightHandIndex
 public void setRightHandIndex(int index)
Sets the index of the right hand to the specified sensor index

Parameters:
index - the new sensor index of the right hand
 o getRightHandIndex
 public int getRightHandIndex()
Gets the sensor index of the right hand

Returns:
the sensor index of the right hand
 o setLeftHandIndex
 public void setLeftHandIndex(int index)
Sets the index of the left hand to the specified sensor index

Parameters:
index - the new sensor index of the left hand
 o getLeftHandIndex
 public int getLeftHandIndex()
Gets the sensor index of the left hand

Returns:
the sensor index of the left hand
 o setDominantHandIndex
 public void setDominantHandIndex(int index)
Sets the index of the dominant hand to the specified sensor index

Parameters:
index - the new sensor index of the dominant hand
 o getDominantHandIndex
 public int getDominantHandIndex()
Gets the sensor index of the dominant hand

Returns:
the sensor index of the dominant hand
 o setNonDominantHandIndex
 public void setNonDominantHandIndex(int index)
Sets the index of the non-dominant hand to the specified sensor index

Parameters:
index - the new sensor index of the non dominant hand
 o getNonDominantHandIndex
 public int getNonDominantHandIndex()
Gets the sensor index of the non-dominant hand

Returns:
the sensor index of the non dominant hand
 o setSensor
 public void setSensor(int index,
                       Sensor sensor)
Set the sensor specified by the index to sensor provided

Parameters:
index - the sensor's index
sensor - the new sensor
 o getSensor
 public Sensor getSensor(int index)
Gets the sensor specified by the index

Parameters:
index - the sensor's index
 o setCoexistenceToTrackerBase
 public void setCoexistenceToTrackerBase(Transform3D t)
Sets the coexistence coordinate system to tracker-base coordinate system transform. If head tracking is enabled, this transform is a calibration constant. If head tracking is not enabled, this transform is not used. This is used in both SCREEN_VIEW and HMD_VIEW modes.

Parameters:
t - the new transform
 o getCoexistenceToTrackerBase
 public void getCoexistenceToTrackerBase(Transform3D t)
Retrieves the coexistence coordinate system to tracker-base coordinate system transform and copies it into the specified Transform3D object.

Parameters:
t - the object that will receive the transform
 o getTrackingAvailable
 public boolean getTrackingAvailable()
Returns a status flag indicating whether or not tracking is available.

Returns:
a flag telling whether tracking is available
 o setCoexistenceCenterInPworldPolicy
 public void setCoexistenceCenterInPworldPolicy(int policy)
Sets the coexistence center in physical world policy. This setting determines how Java 3D places the user's eye point as a function of head position during the calibration process. The variable can contain one of: View.NOMINAL_SCREEN, View.NOMINAL_HEAD, or View.NOMINAL_FEET. NOTE that a value of View.NOMINAL_SCREEN_SCALED is not allowed for this physical world policy.

Parameters:
policy - the new policy
 o getCoexistenceCenterInPworldPolicy
 public int getCoexistenceCenterInPworldPolicy()
Returns the current coexistence center in physical world policy.

Returns:
one of: View.NOMINAL_SCREEN, View.NOMINAL_HEAD, or View.NOMINAL_FEET
 o getSensorCount
 public int getSensorCount()
Get the current sensor count.

Returns:
the number of sensor objects per PhysicalEnvironment object
 o setSensorCount
 public void setSensorCount(int count)
Set the number of sensor objects per PhysicalEnvironmnet. This is a calibration parameter that should be set before initializing Java 3D.

Parameters:
count - the new sensor count

All Packages  Class Hierarchy  This Package  Previous  Next  Index